package edu.sctu.zhengsenwen.month201506.day20150623.operator;

/**
 * 关系操作符（返回值全是boolean型）
 * Created by user15 on 2015/6/23.
 */
public class RelationOperatorDemo {

    public static void main(String[] args) {

        int one = 10;
        int two = 5;
        int three = 5;
        System.out.println("one = "+one);
        System.out.println("two = "+two);
        System.out.println("three = "+three);

        System.out.println("大于操作");
        System.out.println("one > two = "+(one > two));


        System.out.println("大于或等于操作");
        System.out.println("two >= three = "+ (two >= three));

        System.out.println("小于操作");
        System.out.println("three < one = "+(three < one));

        System.out.println("小于或等于操作");
        System.out.println("three <= two = "+(three <= two ));

        System.out.println("等于操作");
        System.out.println("three == two = "+(three == two));

        System.out.println("不等于操作");
        System.out.println("one != three = "+ (one != three));

    }
}
